<?php

namespace App\Commons;

class CommonConstant
{
    // 游戏类型
    const GAME_TYPE_IOS         = 1;  //ios
    const GAME_TYPE_ANDROID     = 2;  //android
    const GAME_TYPE_XIAOCHENGXU = 3;  //小程序
    const GAME_TYPE_XIAOYOUXI   = 4;  //小游戏
    const GAME_TYPE_H5          = 5;  //H5

    // 任务调度运行状态
    const CRON_STATUS_NONE      = 0;
    const CRON_STATUS_BEFORE    = 1;
    const CRON_STATUS_RUN       = 2;
    const CRON_STATUS_SUCCESS   = 3;
    const CRON_STATUS_EXCEPTION = 4;
    const CRON_STATUS_ERROR     = 5;

    // 手机设备类型
    const DEVICE_TYPE_ANDROID  = 1;  // 安卓
    const DEVICE_TYPE_IOS      = 2;  // ios
    const DEVICE_TYPE_WINDOWS  = 3;  // windows
    const DEVICE_TYPE_MAC      = 4;  // mac
    const DEVICE_TYPE_DEVTOOLS = 5;  // 开发者工具
    const DEVICE_TYPE_OTHER    = 0;  // 其他未知

    // 事件类型
    const EVENT_FIRSTUP = 1001;  // 激活
    const EVENT_REG     = 1002;  // 注册
    const EVENT_LOGIN   = 1003;  // 登录
    const EVENT_PAY     = 1004;  // 充值

    const DEFAULT_CHANNEL = 17; // 默认渠道

    // 用户运行环境
    const ENV_TYPE_WECHAT         = 1;  // 在微信上打开
    const ENV_TYPE_APK            = 2;  // 在apk上打开
    const ENV_TYPE_H5             = 3;  // 在H5上打开
    const ENV_TYPE_IOS_STANDALONE = 4;  // 在ios主屏幕上打开

    // 支付宝参数
    const ALIPAY_CONFIG_LIST = [
        'ali-xiyu' => [
            // 应用id
            'app_id'               => "2021004123634198",
            // 商户私钥
            'merchant_private_key' => "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC6B2G0LkRFoNbsWUdN2gdyejjpw9njEJiF6GJ+3YrHJA3T7xl52iXcER71Ti+ubwcnT0NqamUIl33uKMyyOYQuCkOky74zKhUiJ0FCleEUc/IOxAB0bnrbeYhW2b/K211gYL4H+Hr7c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tdYWB/xyECgYAfJYY7O2YdLsDxSOncz5VvwXLBzuJ51mlR/TWPhxOeH4MYPuIFvFPxUNq7tnvZgkT/oRxKDk2Q/OJC5RtQ23IPCFAIsaIrx1vMSDPXTHp8drRwrgTaDsFamwYn3BXETt9q58NLhZIEptzx7BH0hi5JTHfXFSacv5JjlNoUEGFmBQKBgCuTZrDBIVWN3c8GDiqzsnVR4793VlQVdJBv6p5P+boj2CH9a4MEy9+LlYoHtvBT5HlIXPRdnc+Pl91qgRGuNkHYu1+BFD56Xduyb922janHTdA0aYYeqkYZgErWj118vpspIIjqPX5+gbyO9lnWE3jtGpcV+4/ETlbomked0mVE",
            // 编码格式
            'charset'              => "UTF-8",
            // 签名方式
            'sign_type'            => "RSA2",
            // 网关
            'gatewayUrl'           => "https://openapi.alipay.com/gateway.do",
            // 支付宝公钥
            'alipay_public_key'    => "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2N1CMs3+Y0+xwHIf0XkFywrit7thLzqpKbkLuoThIPLntat/3nj0pMnqTuKDhwdBozMgr2A8UIoFbglN1uZMQv68rsNDX6ysOOAUfbz0JT3yJsBCpKBt9VshVkXfwz9IrBsbJSm0Ry6gzaFEryVNATnfOxosGswApjzNUD96o5r0IqNRpyzI4aPRbGKNv7tdmnsMI/37yoPWTDwT9V8LNQ+d4gcttVSKQxCzAFi+ePIdWkQgXtsRvCoCIrL3g7WP+76aBZVgO6jliTvusfjJOBjLia9zmv43e3jq+YMh7qVPsSiP9VYulC47gEpu1c95diLTI0lQqBo7SDtR86vs4QIDAQAB",
        ],
        'ali-sanyou' => [
            // 应用id
            'app_id'               => "2021003168638753",
            // 商户私钥
            'merchant_private_key' => "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCtvGu75/ZMVaylMD7OJPZrY3cBE4KRwOIqjHgZFvIoGz4qAiMSsWopYwaIssj73pDxN+7jdrFto/NcBN2apbSky25Ne15ynaOoLwszzGt1o7h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UNuCx+zaC/sDk2lcqjPBnSeZNDL6CxWkC1kTnAyvfQ1VZ7en/5GyhbxCP5z3aQKBgHkOgoNron4/5fiCE9rfsj1D0o9CV/9iFJbifD4vbAqn1u4BwcOzwYGHP+JfvpusW3MzRDxGYpZdACCCJMobKF+Q71TIxuor0t+zbCgGOX0fRNyaOYdCe1uCss2xVzjBUSCGvTvxNtQuPNKGHR0Dv2h04swoZcDoJaoUWikuWuAnAoGAWgOVikX954wQTYIJQ6vDyVXXZNpMD4m6Ifdy/60xCbIqhDistBqRFUOdYUIHFs1YvNkAHrkpHvBwt4VtIWhxGkk7Mu8ERWGKIKMqn42cfQaeA/CzC3tDG3ImpMrfupn7+aQcx4Zxuoac/aNtljuO1v5ECBgx9I7LEeBj8BhRXoY=",
            // 编码格式
            'charset'              => "UTF-8",
            // 签名方式
            'sign_type'            => "RSA2",
            // 网关
            'gatewayUrl'           => "https://openapi.alipay.com/gateway.do",
            // 支付宝公钥
            'alipay_public_key'    => "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyfBuIJKxJBHocQ9ucW0/vW+KjktMltbkj2hxKpbjEL9tB7/vcsAWOx6iWM1bK+udNxcGLKt0YDUdXmMNUbyrMSFqpiPt3EC2q/gkLh9VTabx2SsQsVDM1felKfrZ2Vb2C2cshrStiiSIq1/3Yafr3r//7VSXBA0NGMeC+xxvO83FIQeh9J2aC28r+ER0CRbevUC7FUTUnyB18EKwRtSTr3hx0YCfvNefb+jprtqKUUBa/llqtJirp1r5dakyT03lWydEVl81n3Ol6p3JkotllXWNVpoTgXitqIjBioGdFMzrLgq6rO0ErjgiWeoyIFwqCIz6hBZvz3FVmK5mvitZYQIDAQAB",
        ],
        'ali-tiankun' => [
            // 应用id
            'app_id'               => "2021005123602639",
            // 商户私钥
            'merchant_private_key' => "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCW4M9YUu70SDR8S+HJVd3bjqZlR0a2RYbcq2Hn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cGy9uMDRx8bdqz0lC/GPIFECdcrvGOYfztRBfdzoe1b+sviSaiTGOOqe/ClUG9faJxiwn0pqNpamm3KV65XWbahUrI2I6msnBUNP40VGW1AoGAdKhtEMdeqr1KXThM20x/fBNflWq16HZxrkdAnBi+2LcUJSGHxhL/qPNbphGl8hM10TCc0t6VqGbBq+vh14Gh0CYQjFJDaJCGMIqAQ7oEKXW/F9hHYLkaLvwFBbob6nRU9V4k0ZQmG0vskMeT2OiFsroTp22mAz5RPeBYO8XQSlkCgYEAx+5UiCsAkp5HvcBHcArJRIDrqXf5zHDbU4MRPKv5HSOFv2lHKzmZm+NTekC5sF9zUTVfoV8SOsYaWJ9QBy0OOXCJeqlYdEFEFhOPZPNZozcOIhaxVFwXYjJ7MKnAsPMAdTReQyu5sFlFQeaJqgIlJUADaJuU0ulTmUxOYxWIZYM=",
            // 编码格式
            'charset'              => "UTF-8",
            // 签名方式
            'sign_type'            => "RSA2",
            // 网关
            'gatewayUrl'           => "https://openapi.alipay.com/gateway.do",
            // 支付宝公钥
            'alipay_public_key'    => "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAluDPWFLu9Eg0fEvhyVXd246mZUdGtkWG3Kth5zG/MOOI0csOaJ0R+kPoiROUe20W/XwoNdU81JM+8rCegPiZQhVGwKFoHIAhbT2exz1dWCEdN7YgROHSj8xbfSvGO1Oo4IL4xSr8/x/MKIKtI82LLwD/ZnNk/E82X7R1taz3UJfkL59tkD0nhN46fwyN5o1DQT+lX6jdqXwM/i4FgZmBZYZEw2sbXvcOKQ7Gv/5ManG98peO9s9G2Ee48ifcyzoXepvNg8OkOTodR9/dd7teOmCejWP7PM+2eR2Y4BhncpNv6jDs2+edrbeF+JjLPNOA99K8gg/JJGBhMqd6k9ocSQIDAQAB",
        ],
    ];

    // 华为云发送短信验证码
    const HUAWEI_SMS_CONFIG_LIST = [
        'normal' => [
            'appkey'      => 'cRLNmOlf6m0e087uAxj0Gpnb3cFW',                      // app key
            'appsecret'   => 'xEwPe9475hC4tnW85WjE4Et0UcZW',                      // app secret
            'appurl'      => 'https://smsapi.cn-south-1.myhuaweicloud.com:443',   // app 接入地址
            'sender'      => '8824032524312',                                     // 国内短信签名通道号
            'template_id' => '8422d9f67b014841ab796e7def5a49de'                   // 模版id
        ],
    ];
}
